package com.qf.pojo;

import java.io.Serializable;

/**
 * 对应数据库的用户表
 */
public class User implements Serializable {


    private int uid;
    private String username;  //对应的是数据库的username字段
    private String password;  //密码
    private String status;    //用户的激活状态 0 未激活 1 激活

    public User() {
    }
    public User(String username, String password, String status) {

        this.username = username;
        this.password = password;
        this.status = status;
    }
    public User(int uid, String username, String password, String status) {
        this.uid = uid;
        this.username = username;
        this.password = password;
        this.status = status;
    }
    public User( String username, String password) {

        this.username = username;
        this.password = password;

    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
